#!/bin/bash
## see http://www.graphviz.org/doc/info/command.html

B="-->"

echo "$B compiling admin program..."
cd ../
AD=" -Wall   -I/usr/local/include    "
LIB=" -Wall -L/usr/local/lib  -lsqlite3 -lcurl "

gcc -c admin_nymrl.c $AD
gcc -c nymrl.c $AD
gcc -c nymrl_conf.c $AD
gcc -c nymrl_log.c $AD
gcc -c nymrl_helper.c $AD
gcc -c nymrl_sqlite.c $AD
gcc -c sqlite_helper.c $AD

gcc -c nymrl_message.c $AD
gcc   admin_nymrl.o nymrl_conf.o nymrl_helper.o  sqlite_helper.o nymrl_log.o nymrl_message.o nymrl_sqlite.o nymrl.o \
       -o nymrladmin  $LIB

echo "$B running admin"
./nymrladmin




# gcc -c lib/json_check/json_checker.c $AD
#json_checker.o
#-ljson 
# -I/usr/local/include/json/ 
